/**
 * Copyright By Nanjing Fujitsu Nanda Software Technology Co., Ltd
 * 上午10:24:23
 * CoreMessageReadService.java
 * 
 */
package com.fujitsu.nanjing.mobile.service;

import com.fujitsu.nanjing.mobile.dao.CoreMessageReadDao;
import com.fujitsu.nanjing.mobile.model.hibernate.CoreMessageRead;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import javax.annotation.Resource;

/**
 * @author qixb.fnst
 * 
 */
@Service
@Transactional
public class CoreMessageReadService implements BaseService<CoreMessageRead> {
    @Resource
    private CoreMessageReadDao coreMessageReadDao;

    @Override
    public CoreMessageRead find(int id) {
        return coreMessageReadDao.query(CoreMessageRead.class, id);
    }

    @Override
    public CoreMessageRead modify(CoreMessageRead t) {
        return coreMessageReadDao.update(t);

    }

    @Override
    public void delete(CoreMessageRead t) {
        coreMessageReadDao.delete(t);
    }

    @Override
    public CoreMessageRead add(CoreMessageRead t) {
        return coreMessageReadDao.insert(t);
    }

    @Override
    public List<CoreMessageRead> find(String queryString) {
        return coreMessageReadDao.query(queryString);
    }

}
